home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16128 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  37 lines

  1. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  2. Path: news.mathworks.com!gatech!psinntp!psinntp!psinntp!psinntp!twratl!tynor
  3. From: tynor@atlanta.twr.com (Steve Tynor)
  4. Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. In-Reply-To: c2a192@ugrad.cs.ubc.ca's message of 8 Apr 1996 21:36:36 -0700
  6. Message-ID: <TYNOR.96Apr9105114@twratl.atlanta.twr.com>
  7. Sender: tynor@atlanta.twr.com (Steve Tynor)
  8. Organization: Tower Technology
  9. References: <JSA.96Feb16135027@organon.com> <4kb2j8$an0@solutions.solon.com>
  10.     <4kbrt5$k3h@mulga.cs.mu.OZ.AU> <dewar.829012486@schonberg>
  11.     <4kcpgkINNcku@keats.ugrad.cs.ubc.ca>
  12. Date: Tue, 9 Apr 1996 15:51:14 GMT
  13.  
  14. In article <4kcpgkINNcku@keats.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
  15.  
  16. | 1.3:    If I write the code
  17. |         int i, j;
  18. |     
  19. |     can I assume that (&i + 1) == &j?
  20. | A:    Only sometimes.  It's not portable, because in EBCDIC, i and j are
  21. |     not adjacent.
  22.  
  23. What does this have to do with EBCDIC? i and j in this examples are
  24. just identifier names of variables -- &i is the address of the
  25. variable i. I has nothing whatsoever to do with the EBCDIC (or ASCII
  26. or whatever character set you choose) value of the characters 'i' and
  27. 'j'.  The answer is still "only sometimes", but not for the reason
  28. given :-). Or did I miss a Date: header of "1 Apr"?
  29.  
  30. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  31. Programming needn't be like penance or oat bran.
  32.  
  33. Steve Tynor        Internet: Steve.Tynor@atlanta.twr.com
  34. Tower Technology     WWW:      http://www.twr.com/
  35.